package com.ls.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @program: myblog
 * @author: lishun
 * @create: 2021-07-04 23:58
 **/
@Data
@ToString
@ApiModel("用户实体类")
public class SysUser implements Serializable {
    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("帐户名")
    private String account;
    @ApiModelProperty("角色名称")
    private Integer admin;
    @ApiModelProperty("头像")
    private String avatar;
    @ApiModelProperty("创建时间")
    private Long createDate;
    @ApiModelProperty("是否删除")
    private Integer deleted;

    private String email;

    private Long lastLogin;

    private String mobilePhoneNumber;

    private String nickname;

    @TableField(exist = false)
    private String username;

    private String password;

    private String salt;

    private String status;

}